using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using Chat.Util;

namespace Chat.Server
{
    public partial class ServerSend : Form
    {
        public ServerSend()
        {
            InitializeComponent();
        }

        private void btnStartServer_Click(object sender, EventArgs e)
        {
            //ChatServerAsync.startServer(this);
        }


        public void AppendText(string msg) {
            this.tbShowMsg.AppendText(msg + "\r\n");
        }

        public void SetText(string msg)
        {
            this.tbShowMsg.Text = msg + "\r\n";
        }

        public void ClearText()
        {
            this.tbShowMsg.Text = "";
        }

        private void MainServer_Load(object sender, EventArgs e)
        {
            //this.label1.Text = Tools.GetLocalIP() + ":" + ChatServerAsync.Port ;
        }

        private void button2_Click(object sender, EventArgs e)
        {
            //string msg = this.tbInputMsg.Text;
           // ChatServerAsync.Send(msg);
           // this.tbInputMsg.Text = "";
        }

    }
}